package edu.sctu.practice.class02.Wangpeng.Test18;

/**
 * Created by wp on 2015/11/9.
 */
public class Auto {
    int tires;
    String color;
    int load;
    int speed;

    public Auto(int tires,String color,int load,int speed){
        this.tires=tires;
        this.color=color;
        this.load=load;
        this.speed=speed;
    }
    void upspeed(){
        System.out.println("加速");
    }
    void downspeed(){
        System.out.println("减速");
    }
    void stop(){
        System.out.println("停车");
    }
    void getInfo(){
        System.out.println("轮胎"+tires+"颜色"+color+"重量"+load+"速度"+speed);
    }
}
